package process.model.lookup;

import process.model.OntoResource;


public class OntoLookUp implements Comparable<OntoLookUp> {

	private OntoResource resource;
	private double distance;

	public OntoLookUp(OntoResource resource, double distance) {
		this.resource = resource;
		this.distance = distance;
	}

	public OntoResource getResource() {
		return resource;
	}

	public void setResource(OntoResource resource) {
		this.resource = resource;
	}

	public double getDistance() {
		return distance;
	}

	public void setDistance(double distance) {
		this.distance = distance;
	}

	@Override
	public int compareTo(OntoLookUp o) {
		return Double.compare(this.distance, o.getDistance());
	}


}
